<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
<link href="../../../../../styles.css" rel="stylesheet" type="text/css" />
</head>

<body>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td width="11%"><strong>Package</strong></td>
    <td width="89%">com.jxl.shuriken.controls </td>
  </tr>
  <tr>
    <td><strong>Class</strong></td>
    <td>public class Button</td>
  </tr>
  <tr>
    <td><strong>Inheritance</strong></td>
    <td>Button &gt; SimpleButton &gt; UIComponent &gt; MovieClip </td>
  </tr>
  <tr>
    <td><strong>Subclasses</strong></td>
    <td>&nbsp;</td>
  </tr>
</table>
<p>Button provides you with a standard button as well as a label and icon. Both are optional. If you are not going to use either, you should probably use SimpleButton instead. Additionally, if you are just going to use icon, you should just extend SimpleButton, and throw the icon on the stage, and override the drawButton function. </p>
<p>The final feature that sets the Button apart from the SimpleButton is that it handles multiple selection states as well as supporting toggleability. You can extend Button, and then create skins for these states (selected, over, down). </p>
<p>view examples</p>
<p>See also</p>
<h4>Public Properties</h4>
<h5>static</h5>
<p>  SYMBOL_NAME<br />
  <br />
  ALIGN_ICON_LEFT</p>
<p> ALIGN_ICON_CENTER</p>
<p>ALIGN_ICON_RIGHT<br />
  <br />
  SELECTED_STATE</p>
<p>DEFAULT_STATE</p>
<p>OVER_STATE</p>
<p>&nbsp;</p>
<p>label</p>
<p>toggle</p>
<p>selected</p>
<p>icon</p>
<p>alignIcon</p>
<p>currentState</p>
<p>textField</p>
<p>&nbsp;</p>
<h4>Public Methods</h4>
<p>Button ()</p>
<p>onRelease () </p>
<p>onRollOver ()</p>
<p>onRollOut  ()</p>
<p>measureText ()</p>
<p>setSelectionChangeCallback ( scope : Object, func : Function ) </p>
</body>
</html>
